﻿

-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[eVersiuneDocumentAdd] 
	-- Add the parameters for the stored procedure here
	@idDocument bigint,
	@UserID uniqueidentifier,
	@descriere varchar(50),
	@IdVerDoc int out
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    INSERT INTO [eVersiuniDocumente] ([IDDocument],[Data],[Continut],[IDUserProprietar],[Descriere]) VALUES
    (@idDocument,GETDATE(),'',@UserID,@descriere)
    	
    SELECT  @IdVerDoc= @@identity	
    	
END